package com.datechange.service.impl;


import com.datechange.service.DateChanger;
import com.datechange.utils.CommandExecutor;

public class DateChangerImpl implements DateChanger {

	@Override
	public void changeSystemDate(String date) {
		String[] command = new String[3];
		command[0] = "cmd";
		command[1] = "/c"; // "/C" command Executes the specified command and returns.
		command[2] = "date "+date;
		CommandExecutor.runCommand(command);
	}

}
